﻿<%@ Page Title="" Language="C#" MasterPageFile="~/iCreateMasterPage.master" AutoEventWireup="true" CodeBehind="GrossMargins.aspx.cs" Inherits="iCreatePortal.WebForm11" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="PageContentPlaceHolder" runat="server">
<div class="iCreatePage" style="height: 600px;">
        <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
        </asp:ToolkitScriptManager>
        <br />
        &nbsp;<asp:Label ID="Label1" runat="server" Text="Gross Margin Summary" CssClass="iCreateContentLabel"></asp:Label>
        <br />
        &nbsp;&nbsp;&nbsp;<asp:Label ID="Label2" runat="server" Text="Dates - From"></asp:Label>
        &nbsp;<asp:TextBox ID="TextBox1" runat="server" Text="1/12/2012"></asp:TextBox>
        &nbsp;<asp:Label ID="Label3" runat="server" Text="To"></asp:Label>
        &nbsp;<asp:TextBox ID="TextBox2" runat="server" Text="30/03/2013"></asp:TextBox>
        &nbsp;&nbsp;<asp:Button ID="Button1" runat="server" Text="Run Report" />
        <br />
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <asp:GridView ID="GridView1" runat="server" AllowPaging="False" AutoGenerateColumns="False"
                    DataSourceID="XmlDataSource1" Width="600px" Height="500px" GridLines="None"
                    HeaderStyle-Height="20px" onrowcommand="GridView1_RowCommand">
                    <Columns>
                        <asp:CommandField InsertVisible="False" ShowCancelButton="False" ShowHeader="True" ShowSelectButton="True" SelectText="Show">
                            <ItemStyle Width="30px"></ItemStyle>
                        </asp:CommandField>
                        <asp:BoundField HeaderText="Project Code">
                            <ItemStyle Width="300px"></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField HeaderText="Dec, 2012">
                            <ItemStyle Width="60px"></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField HeaderText="Jan, 2013">
                            <ItemStyle Width="60px"></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField HeaderText="Feb, 2013">
                            <ItemStyle Width="60px"></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField HeaderText="Mar, 2013">
                            <ItemStyle Width="60px"></ItemStyle>
                        </asp:BoundField>
                    </Columns>
                </asp:GridView>
            </ContentTemplate>

        </asp:UpdatePanel>
        <br />
&nbsp;<asp:Button ID="Button2" runat="server" Text="Export to Excel" Width="170px"/>
        <asp:XmlDataSource ID="XmlDataSource1" runat="server" DataFile="~/App_Data/MyTasks.xml"></asp:XmlDataSource>
    </div>
</asp:Content>
